package pl.elka.pobr.ppr.logic;

import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class ImageHolder {

    private BufferedImage mImage;

    public ImageHolder(File imageFile) throws IOException {
        mImage = ImageIO.read(imageFile);
    }

    public Dimension getImageSize() {
        return new Dimension(mImage.getWidth(), mImage.getHeight());
    }

    public BufferedImage getImage() {
        return mImage;
    }
}
